<?php 
if(KT!='KhiThe') exit;
class sbLink_controller extends sbLink_model{
	
	public function __construct(){
		
		global $lang;
		
		$lang['url_base'] = url_base;	
		$this->path_cur = dirname(__FILE__);	
		parent::__construct();
		parent::addObject('khithe_template');
		parent::addObject('khithe_request');
		parent::addObject('khithe_string');
		parent::addObject('khithe_images');
		
		$this->lang = $lang;
	}
	public function index()
	{
		$i = 5;
		$strLink = '';
		$arrLink = parent::get_link($i);
		if($arrLink>0){
			foreach ($arrLink as $row_Link)
			{							
				$strLink .='<div class="content_Support text_center">';
									$strLink .='<a style="text-decoration: none; font-weight: bold;" target="_blank" rel="follow" href="'.$row_Link['Link'].'">
										<img width="200" src="'.url_base.'uploads/links/'.$row_Link['Picture'].'" border="0" complete="complete"/>
									</a><br />
									<a style="text-decoration: none; font-weight: bold;" target="_blank" rel="follow" href="'.$row_Link['Link'].'">'.$row_Link['Title'].'</a>
									';
				$strLink .='</div>';							
			}
		}
		
		$this->lang['content_link'] = $strLink;
		$strModule = parent::khithe_display_template(dirname(__FILE__).'/sbLink');
		return $strModule = parent::khithe_assign($strModule, $this->lang);
	}
	


}
?>